Skip to content

Fix #15007: isAttributeNoreturn not set for _Noreturn - #8823

Merged
ludviggunne merged 5 commits into
cppcheck-opensource:mainfrom
ludviggunne:15007-_Noreturn
Sep 9, 2026
Merged

Fix #15007: isAttributeNoreturn not set for _Noreturn#8823
ludviggunne merged 5 commits into
cppcheck-opensource:mainfrom
ludviggunne:15007-_Noreturn

Conversation

@ludviggunne

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/tokenize.cpp Outdated
Comment thread lib/tokenize.cpp Outdated
}
}

if (isC() && tok->str() == "_Noreturn" || tok->str() == "noreturn") {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noreturn is technically a macro but adding it to std.cfg would mess up [[noreturn]].

Comment thread lib/tokenize.cpp
@ludviggunne
ludviggunne merged commit 7a8c67a into cppcheck-opensource:main Sep 9, 2026
71 checks passed
@ludviggunne
ludviggunne deleted the 15007-_Noreturn branch September 9, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants